package application.snakes;

import application.GameManager;
import application.GameMatrix;
import application.food.IceCream;
import application.food.Insect;
import application.food.Meat;

public class IceAgeSnake extends Snake {

	public IceAgeSnake(GameMatrix matrix,GameManager manager) {
		super(matrix,manager);
	}
	
	@Override
	public void visit(Meat meat) {
		GameManager.print("Ice Age snake ate meat");
		super.move();
		super.repaint();
		super.move();
		super.repaint();
		super.updateScore(10);
		
	}
	@Override
	public void visit(IceCream icecream) {
		GameManager.print("Ice Age snake ate ice cream");
		for(int i = 0; i < 5; i++){
			super.move();
			super.repaint();
		}
		super.updateScore(50);
		
	}
	@Override
	public void visit(Insect insect) {
		GameManager.print("Ice Age snake ate insect");
		super.move();
		super.repaint();
		super.updateScore(5);
		
	}

}
